﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameCameraDrag : MonoBehaviour
{
    public enum MoveType
    {
        SmoothDamp,
        Curve,
    }

    [SerializeField] private MoveType _moveType =MoveType.SmoothDamp;
    [SerializeReference]  private CameraDrag _drag=new CameraDragSmoothDamp();
    //public Transform pointNode;

    private void Start()
    {
        _drag.Init();
    }

    void Update()
    {
        _drag.OnGrag();
    }

    private Vector3 target;

    private void LateUpdate()
    {
        _drag.UpdataDrag();
    }

   
}